<style type="text/css">
    .ui.container{width: 1300px;}
    .ui.table thead tr th, .ui.table tbody tr td{
        text-align:center;
    }
</style>
    <div class="cont">
        <div class="position">
              <img alt="位置图标" src="dist/images/position.png" />系统管理&gt;审核管理
        </div>
            <div class="menus">
             <div class="mybackground">
              <div class="cont_fr_top"> 
               <div class="menus">
                      <div class="menus_con">
                          <div class="ui form">
                              <div class="four fields">
                                  <div class="inline field">
                                      <label>工号：</label>
                                      <input type="text" ng-model="search_param.number" placeholder="工号"  style="width:160px" ng-keyup="$event.keyCode == 13 && search()">
                                 </div>
                                 <div class="inline field">
                                      <label>姓名：</label>
                                      <input type="text" ng-model="search_param.nickname" placeholder="姓名"  style="width:160px" ng-keyup="$event.keyCode == 13 && search()">
                                 </div>
                                   <div class="inline field">
                                        <label for="textfield" class="li_lable">员工部门:</label>
                                          <div class="ui selection dropdown"  style="min-width:160px;">
                                              <input type="text"  style="display:none;"  ng-model="search_param.sector">
                                              <div class="text">默认为所有部门</div>
                                              <i class="dropdown icon"></i>
                                             <div class="menu" >
                                                  <div class="item" data-value="-1"  >所有部门</div>
                                                  <div class="item" data-value="{{vitem.sector_id}}" ng-repeat="vitem in sectors|tree2Arr:'_child'" >{{vitem.rep}}{{vitem.sector_name}}</div>
                                              </div>
                                          </div>
                                  </div>     
                              </div>
                              <div class="fields">
                                   <div class="inline field"  style="margin-left: 5.7em;">
                                      <button class="clear_btn" ng-click="search()">查询</button>
                                  </div>
                              </div>
                          </div>
                      </div>
                  </div>
              </div>
          </div>     
          <div class="menus_table">
              <table class="ui yellow celled striped table">
                  <thead>
                      <tr>
                          <th>姓名</th>
                          <th>工号</th>
                          <th>部门</th>
                          <th>操作</th>
                      </tr>
                  </thead>
                  <tbody>
                      <tr ng-repeat="wuser in auditing">
                          <td>{{wuser.ext_name}}</td>
                          <td>{{wuser.ext_yggh}}</td>
                          <td>{{wuser.sname}}</td>
                          <td>
                              <a href="javascript:void(0);" ng-click="showEmlModal(wuser['user_id'])">审核</a>&nbsp;
                          </td>
                      </tr>
                  </tbody>
                  <tbody ng-show="rcode==2">
                      <tr ng-show="!busy">
                          <td colspan="4" style="text-align:center;margin-top:10px" class="null_data">没有找到数据~~~</td>
                      </tr>
                  </tbody> 
              </table>
             <div ng-if="pagerdata.pageAll >1 && rcode==1" class="ui pagination fr menu" jspagination page-object="pagerdata" page-func="getPageData">
              </div>
          </div>
       </div>
    </div>
  <!-- 提交审核 -->
    <div class="ui show modal">
        <i class="close icon"></i>
        <div class="header_h4">
          审核档案
        </div>
        <div class="content">
            <div class="ui top attached tabular menu" style="overflow:inherit">
              <a class="item active" data-tab="jiben">基本信息</a>
              <a class="item" data-tab="buchong">补充信息</a>
            </div>
            <div class="ui bottom attached tab segment active" data-tab="jiben">
              <div class="fir ui form">
                <div class=" three fields">
                  <div class="field" style="line-height: 32px">
                    <b>工号：</b><span>{{editEmpl.ext_yggh}}</span>
                  </div>
                  <div class="field" style="line-height: 32px">
                    <b>姓名：</b><span>{{editEmpl.ext_name}}</span>
                  </div>
                  <div class="field" style="line-height: 32px">
                    <b>手机：</b><span>{{editUser.phone}}</span>
                  </div>
                </div>
                <div class=" three fields">
                  <div class="field" style="line-height: 32px">
                    <b>微信：</b><span>{{editUser.weixin}}</span>
                  </div>
                  <div class="field" style="line-height: 32px">
                    <b>在职状态：</b><span>{{statusType[editEmpl.ext_user_status].v}}</span>
                  </div>
                  <div class="field" style="line-height: 32px">
                    <b>微信：</b><span>{{editUser.sector_name}}</span>
                  </div>
                </div>
                <div class="three fields">
                  <div class="field" style="line-height: 32px">
                    <b>岗位：</b><span>{{editUser.role_name}}</span>
                  </div>
                  <div class="field" style="line-height: 32px">
                    <b>学历：</b><span>{{xlType[editEmpl.ext_xl].v}}</span>
                  </div>
                  <div class=" field" style="line-height: 32px">
                    <b>性别：</b><span>{{sexType[editUser.sex].v}}</span>
                  </div>
                </div>
                <div class=" three fields">
                  <div class=" field" style="line-height: 32px">
                    <b>民族：</b><span>{{minzuType[1].v}}</span>
                  </div>
                  <div class=" field" style="line-height: 32px">
                    <b>出生日期：</b><span>{{editEmpl.ext_bird | limitTo : 10}}</span>
                  </div>
                  <div class=" field" style="line-height: 32px">
                    <b>政治面貌：</b><span>{{zzmmType[1].v}}</span>
                    <!-- editEmpl.ext_zzmm -->
                  </div>
                </div>
                <div class=" three fields">
                  <div class=" field" style="line-height: 32px">
                    <b>婚姻状况：</b><span>{{marryType[1].v}}</span>
                  </div>
                  <div class="field" style="line-height: 32px">
                    <b>身份证号：</b><span>{{editEmpl.ext_sfz}}</span>
                  </div>
                  <div class="field" style="line-height: 32px">
                    <b>紧急电话：</b><span>{{editEmpl.ext_urgphone}}</span>
                  </div>
                </div>
                <div class=" three fields">
                  <div class="field" style="line-height: 32px">
                    <b>电子邮箱：</b><span>{{editUser.email}}</span>
                  </div>
                  <div class="field" style="line-height: 32px">
                    <b>参加工作时间：</b><span>{{editEmpl.ext_workdate}}</span>
                  </div>
                </div>
                <div class="field" style="line-height: 32px">
                  <b>住址(现)：</b><span>{{editEmpl.ext_curaddr}}</span>
                </div>
                <div class="field" style="line-height: 32px">
                  <b>户口所在地：</b><span>{{editEmpl.ext_hkaddr}}</span>
                </div>
              </div>
            </div>
            <div class="ui bottom attached tab segment" data-tab="buchong">
              <!-- 员工家庭信息编辑 -->
              <div class="fam ui form">
                <div class="fields" style="position: relative;">
                  <div style="margin: auto">家庭主要成员</div>
                </div>
                <table class="ui celled table" style="text-align: center;">
                  <thead>
                    <tr>
                      <th>关系</th>
                      <th>姓名</th>
                      <th>工作单位</th>
                      <th>职务</th>
                      <th>联系方式</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr ng-repeat="vfamily in familys">
                      <td ng-if="vfamily.fam_type == 0">父亲</td>
                      <td ng-if="vfamily.fam_type == 1">母亲</td>
                      <td ng-if="vfamily.fam_type == 2">子女</td>
                      <td>{{vfamily.fam_name}}</td>
                      <td>{{vfamily.fam_wkunit}}</td>
                      <td>{{vfamily.fam_zhiwu}}</td>
                      <td>{{vfamily.fam_lxfs}}</td>
                    </tr>
                    <tr ng-show="!familys.length">
                      <td colspan="5">
                        <strong>没有找到数据~~~</strong>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <!-- 员工教育信息编辑 -->
              <div class="edu ui form">
                <div class="fields" style="position: relative;">
                  <div style="margin: auto">教育经历</div>
                </div>
                <table class="ui celled table" style="text-align: center;">
                  <thead>
                    <tr>
                      <th>开始时间</th>
                      <th>结束时间</th>
                      <th>学校名称</th>
                      <th>专业/内容</th>
                      <th>相关证书</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr ng-repeat="vedu in edus">
                      <td>{{vedu.edu_bdate | limitTo : 10}}</td>
                      <td>{{vedu.edu_edate | limitTo : 10}}</td>
                      <td>{{vedu.edu_school}}</td>
                      <td>{{vedu.edu_content}}</td>
                      <td>{{vedu.edu_certificate}}</td>
                    </tr>
                    <tr ng-show="!edus.length">
                      <td colspan="5">
                        <strong>没有找到数据~~~</strong>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>

              <!-- 员工培训信息编辑 -->
              <div class="train ui form">
                <div class="fields" style="position: relative;">
                  <div style="margin: auto">培训经历</div>
                </div>
                <table class="ui celled table" style="text-align: center;">
                  <thead>
                    <tr>
                      <th>开始时间</th>
                      <th>结束时间</th>
                      <th>培训学校/机构</th>
                      <th>培训课程</th>
                      <th>相关证书</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr ng-repeat="vtrain in trains">
                      <td>{{vtrain.train_bdate | limitTo : 10}}</td>
                      <td>{{vtrain.train_edate | limitTo : 10}}</td>
                      <td>{{vtrain.train_school}}</td>
                      <td>{{vtrain.train_content}}</td>
                      <td>{{vtrain.train_certificate}}</td>
                    </tr>
                    <tr ng-show="!trains.length">
                      <td colspan="5">
                        <strong>没有找到数据~~~</strong>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>

              <!-- 员工工作经历信息编辑 -->
              <div class="work ui form">
                <div class="fields" style="position: relative;">
                  <div style="margin: auto">工作经历</div>
                </div>
                <table class="ui celled table" style="text-align: center;">
                  <thead>
                    <tr>
                      <th>开始时间</th>
                      <th>结束时间</th>
                      <th>工作单位</th>
                      <th>职务</th>
                      <th>薪资</th>
                      <th>离职原因</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr ng-repeat="vwork in works">
                      <td>{{vwork.work_bdate | limitTo : 10}}</td>
                      <td>{{vwork.work_edate | limitTo : 10}}</td>
                      <td>{{vwork.work_unit}}</td>
                      <td>{{vwork.work_post}}</td>
                      <td>{{vwork.work_salary}}</td>
                      <td>{{vwork.work_reason}}</td>
                    </tr>
                    <tr ng-show="!works.length">
                      <td colspan="6">
                        <strong>没有找到数据~~~</strong>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
            <div class="ui bottom attached tab segment">
            </div>
        </div>
        <div class="actions ">
          <div class="ui blue button positive" style="width:110px;" ng-click="update(userId,1)">审核通过</div>
          <div class="ui grey negative button" style="width:110px"  ng-click="update(userId,2)">退回修改</div>
        </div> 
    </div>  
<script type="text/javascript">
  $('.ui.dropdown').dropdown({
      onChange:function(value, text, $choice){
          $($choice).parent().parent().find('input').val( value );
          $($choice).parent().parent().find('input').trigger('change');
      }
  });
</script>